<template>
	<view class="card_container demo">
		<image class="logo" src="../../static/logo.png" mode=""></image>
		<text class="title">{{title}}</text>
		<text class="time">{{date|datetime}}</text>
		<p-button type="primary" @click="start">开始</p-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '博泰卡片小程序',
				date:null
			}
		},
		onLoad() {
			setInterval(()=>{
				this.date = new Date();
			},1000)
		},
		methods: {
			start(){
				uni.showToast({
				    title: "Hello World",
					icon: 'none',
				    duration: 2000
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.demo{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		.logo{
			width: 120rpx;
			height: 120rpx;
		}
		.title{
			margin-top: 30rpx;
			margin-bottom: 30rpx;
			font-size: $font_size_medium;
			color:$h1_light;
		}
		.time{
			margin-bottom: 30rpx;
			color:$h2_light;
		}
	}
</style>
